<div class="panel panel-default" style="height: 500px;overflow: auto;">
    <table class="table table-hover table-responsive table-bordered" style="border: 1px solid #e5e5e5;">
        <thead>
        <tr>
            <th class="text-center">商品ID</th>
            <th class="text-center">商品图片</th>
            <th class="text-center">商品名称</th>
            <th class="text-center">价格</th>
            <th class="text-center">操作</th>
        </tr>
        </thead>
        <tbody class="text-center" id="selectLiveGoodsList">
            {loop $list $val}
                <tr class="text-center">
                    <td>{$val['goods_id']}</td>
                    <td>
                        <img class="scrollLoading" src="{$val['goods_img']}" onerror="this.src='{IMAGE_NOPIC_SMALL}'" height="50" width="50"/>
                    </td>
                    <td>{$val['title']}</td>
                    <td>
                        <!-- 价格类型，1：一口价,2：价格区间,3：显示折扣价 -->
                        {if $val['price_type'] == 1}
                        <label class="label label-success">售价：{$val['price']}</label>
                        {elseif $val['price_type'] == 2}
                        <label class="label label-info">售价：{$val['price']} ~ {$val['price2']}</label>
                        {else}
                        <label class="label label-primary">原价：{$val['price']}</label><br />
                        <label class="label label-danger" style="display: inline-block;margin-top: 5px;">现价：{$val['price2']}</label>
                        {/if}
                    </td>
                    <td>
                        <a href="javascript:;" class="btn btn-sm btn-primary selectedLiveGoods" data-params='{php echo json_encode($val);}'>选择</a>
                    </td>
                </tr>
            {/loop}
        </tbody>
    </table>
</div>
<div class="app-table-foot clearfix">
    <div class="pull-left">
        <button type="button" class="btn btn-danger min-width" id="closeButton"  data-dismiss="modal">取消</button>
    </div>
    <div class="pull-right">{$pager}</div>
</div>